Skip to content

Parallelize bare repo fetching and update existing worktrees on render#20

Merged
milldr merged 2 commits intomainfrom
feat/render-pull-remote
Mar 11, 2026
Merged

Parallelize bare repo fetching and update existing worktrees on render#20
milldr merged 2 commits intomainfrom
feat/render-pull-remote

Conversation

@milldr
Copy link
Owner

@milldr milldr commented Mar 11, 2026

What

  • Parallelizes bare repo clone/fetch during flow render using goroutines
  • Updates existing worktrees to the latest remote ref when re-rendering (clean worktrees only)
  • Adds ResetBranch to the git Runner interface for hard-resetting worktrees

Why

Bare repo fetching was sequential, making render slow for multi-repo workspaces. More importantly, re-rendering a workspace with branches like main or staging would skip existing worktrees entirely, leaving them stale even though the bare repo had been fetched. Now render always picks up the latest remote state.

Ref

Related to the recurring issue of stale cached git trees when starting new workspaces that reference remote branches.

@milldr milldr added the patch Patch version bump label Mar 11, 2026
@milldr milldr merged commit 1bf620e into main Mar 11, 2026
3 checks passed
@milldr milldr deleted the feat/render-pull-remote branch March 11, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Patch version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant